#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
#  https_test.py
#  
#  Copyright 2022 vicent-PC <vicent-PC@VICENT_PC>
#  
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.
#  
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#  
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software
#  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
#  MA 02110-1301, USA.
#  
#  
import requests

headers = {
    'User-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36'
}

def browseSimGet(url):
    payload = {'key1': 'value1', 'key2': 'value2'}
    res = requests.get(url, headers=headers, params=payload)
    print(res.status_code, res.text)
def browseSimPost(url):
    payload = {'key1': 'value1', 'key2': 'value2'}
    res = requests.post(url, headers=headers, data = {'key':'value'})
    print(res.status_code,res.text)
